import logging

log_format = '%(asctime)s - %(levelname)s - %(message)s - %(pathname)s'
# 基础日志配置，默认输出到控制台
logging.basicConfig(format=log_format, level=logging.DEBUG)


if __name__ == '__main__':
    import uvicorn
    uvicorn.run('app:app', host="0.0.0.0", port=8080, reload=True)
